.class public Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferAdapter;
.super Landroidx/recyclerview/widget/RecyclerView$Adapter;
.source "FileTransferAdapter.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Landroidx/recyclerview/widget/RecyclerView$Adapter<",
        "Landroidx/recyclerview/widget/RecyclerView$ViewHolder;",
        ">;"
    }
.end annotation


# static fields
.field private static e:I = 0x32


# instance fields
.field private a:Landroidx/recyclerview/widget/RecyclerView$Adapter;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroidx/recyclerview/widget/RecyclerView$Adapter<",
            "Landroidx/recyclerview/widget/RecyclerView$ViewHolder;",
            ">;"
        }
    .end annotation
.end field

.field private b:Landroid/content/Context;

.field private c:Lcom/estrongs/android/ui/topclassify/n;

.field private d:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Les/ql;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .locals 3

    .line 1
    invoke-direct {p0}, Landroidx/recyclerview/widget/RecyclerView$Adapter;-><init>()V

    .line 2
    iput-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferAdapter;->b:Landroid/content/Context;

    .line 3
    new-instance p1, Ljava/util/ArrayList;

    invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V

    iput-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferAdapter;->d:Ljava/util/List;

    .line 4
    new-instance p1, Lcom/estrongs/android/ui/topclassify/n;

    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferAdapter;->b:Landroid/content/Context;

    const-string v1, ""

    const/4 v2, 0x0

    invoke-direct {p1, v1, v0, v2}, Lcom/estrongs/android/ui/topclassify/n;-><init>(Ljava/lang/String;Landroid/content/Context;Lcom/estrongs/android/ui/homepage/HomeAdapter;)V

    iput-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferAdapter;->c:Lcom/estrongs/android/ui/topclassify/n;

    .line 5
    new-instance p1, Les/ql;

    const/4 v0, 0x1

    invoke-direct {p1, v0}, Les/ql;-><init>(I)V

    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferAdapter;->a(Les/ql;)V

    .line 6
    new-instance p1, Les/ql;

    const/4 v0, 0x2

    invoke-direct {p1, v0}, Les/ql;-><init>(I)V

    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferAdapter;->a(Les/ql;)V

    return-void
.end method

.method private a(Les/ql;)V
    .locals 1

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferAdapter;->d:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    invoke-direct {p0, p1, v0}, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferAdapter;->a(Les/ql;I)V

    return-void
.end method

.method private a(Les/ql;I)V
    .locals 1

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferAdapter;->d:Ljava/util/List;

    invoke-interface {v0, p2, p1}, Ljava/util/List;->add(ILjava/lang/Object;)V

    return-void
.end method


# virtual methods
.method public a(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroidx/recyclerview/widget/RecyclerView$Adapter<",
            "Landroidx/recyclerview/widget/RecyclerView$ViewHolder;",
            ">;)V"
        }
    .end annotation

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferAdapter;->a:Landroidx/recyclerview/widget/RecyclerView$Adapter;

    return-void
.end method

.method public a(Ljava/util/Map;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map<",
            "Ljava/lang/Integer;",
            "Ljava/lang/Integer;",
            ">;)V"
        }
    .end annotation

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferAdapter;->c:Lcom/estrongs/android/ui/topclassify/n;

    if-eqz v0, :cond_0

    if-eqz p1, :cond_0

    invoke-interface {p1}, Ljava/util/Map;->size()I

    move-result v0

    if-lez v0, :cond_0

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferAdapter;->c:Lcom/estrongs/android/ui/topclassify/n;

    invoke-virtual {v0, p1}, Lcom/estrongs/android/ui/topclassify/n;->a(Ljava/util/Map;)V

    :cond_0
    return-void
.end method

.method public getItemCount()I
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferAdapter;->a:Landroidx/recyclerview/widget/RecyclerView$Adapter;

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferAdapter;->d:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0

    .line 2
    :cond_0
    invoke-virtual {v0}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->getItemCount()I

    move-result v0

    iget-object v1, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferAdapter;->d:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    add-int/2addr v0, v1

    return v0
.end method

.method public getItemViewType(I)I
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferAdapter;->d:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-ge p1, v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferAdapter;->d:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Les/ql;

    iget p1, p1, Les/ql;->a:I

    return p1

    .line 3
    :cond_0
    sget v0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferAdapter;->e:I

    iget-object v1, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferAdapter;->a:Landroidx/recyclerview/widget/RecyclerView$Adapter;

    iget-object v2, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferAdapter;->d:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    sub-int/2addr p1, v2

    invoke-virtual {v1, p1}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->getItemViewType(I)I

    move-result p1

    add-int/2addr v0, p1

    return v0
.end method

.method public onBindViewHolder(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)V
    .locals 2

    .line 1
    invoke-virtual {p0, p2}, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferAdapter;->getItemViewType(I)I

    move-result v0

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    invoke-virtual {p0, p2}, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferAdapter;->getItemViewType(I)I

    move-result v0

    const/4 v1, 0x2

    if-ne v0, v1, :cond_1

    .line 3
    check-cast p1, Lcom/estrongs/android/pop/app/filetransfer/adapter/SendClassifyViewHolder;

    iget-object p2, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferAdapter;->c:Lcom/estrongs/android/ui/topclassify/n;

    invoke-virtual {p2}, Lcom/estrongs/android/ui/topclassify/c;->d()Ljava/util/List;

    move-result-object p2

    invoke-virtual {p1, p2}, Lcom/estrongs/android/pop/app/filetransfer/adapter/SendClassifyViewHolder;->a(Ljava/lang/Object;)V

    :goto_0
    return-void

    .line 4
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferAdapter;->d:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    sub-int/2addr p2, v0

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferAdapter;->a:Landroidx/recyclerview/widget/RecyclerView$Adapter;

    invoke-virtual {v0, p1, p2}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->onBindViewHolder(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)V

    return-void
.end method

.method public onCreateViewHolder(Landroid/view/ViewGroup;I)Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
    .locals 2

    const/4 v0, 0x1

    if-ne p2, v0, :cond_0

    .line 1
    new-instance p1, Lcom/estrongs/android/pop/app/filetransfer/adapter/SendAndReceiveViewHolder;

    iget-object p2, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferAdapter;->b:Landroid/content/Context;

    invoke-direct {p1, p2}, Lcom/estrongs/android/pop/app/filetransfer/adapter/SendAndReceiveViewHolder;-><init>(Landroid/content/Context;)V

    return-object p1

    :cond_0
    const/4 v0, 0x2

    if-ne p2, v0, :cond_1

    .line 2
    new-instance p1, Lcom/estrongs/android/pop/app/filetransfer/adapter/SendClassifyViewHolder;

    iget-object p2, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferAdapter;->b:Landroid/content/Context;

    invoke-direct {p1, p2}, Lcom/estrongs/android/pop/app/filetransfer/adapter/SendClassifyViewHolder;-><init>(Landroid/content/Context;)V

    return-object p1

    .line 3
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferAdapter;->a:Landroidx/recyclerview/widget/RecyclerView$Adapter;

    sget v1, Lcom/estrongs/android/pop/app/filetransfer/adapter/FileTransferAdapter;->e:I

    sub-int/2addr p2, v1

    invoke-virtual {v0, p1, p2}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->onCreateViewHolder(Landroid/view/ViewGroup;I)Landroidx/recyclerview/widget/RecyclerView$ViewHolder;

    move-result-object p1

    return-object p1
.end method
